package com.demo.entity.enu;

public enum DoTypeEnum {
	REGISTER(1001, "注册新用户"), 
	LOGIN(1002, "执行登录");

	private int type;
	private String remark;

	private DoTypeEnum(int type, String remark) {
		this.type = type;
		this.remark = remark;
	}

	public static DoTypeEnum getDoType(int type) {
		for (DoTypeEnum t : DoTypeEnum.values()) {
			if (t.type == type) {
				return t;
			}
		}
		return null;
	}

	public int getType() {
		return type;
	}

	public String getRemark() {
		return remark;
	}
	
}
